package com.kingwang.training.designpattern.builder;

import com.kingwang.training.designpattern.builder.bean.CustomCar;
import com.kingwang.training.designpattern.builder.builder.CarBuilder;
import com.kingwang.training.designpattern.builder.builder.ToyotaWulingCarBuilder;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Application implements ApplicationRunner {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @Override
    public void run(ApplicationArguments args) throws Exception {
        CarBuilder carBuilder = new ToyotaWulingCarBuilder();

        CustomCar car = carBuilder.build();

    }
}
